package com.feicheng.persistence.service.impl;

import com.feicheng.persistence.entity.Category;
import com.feicheng.persistence.mapper.CategoryMapper;
import com.feicheng.persistence.model.CategoryPagePojo;
import com.feicheng.persistence.service.ICategoryService;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cailongyang
 * @since 2022-01-10
 */
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements ICategoryService {

	@Override
	public Page<CategoryPagePojo> selectCategorysByPage(IPage<CategoryPagePojo> page, Wrapper wrapper) {
		return this.getBaseMapper().selectCategorysByPage(page, wrapper);
	}
	
	@Override
	public List<CategoryPagePojo> selectCategorysAll(Wrapper wrapper) {
		return this.getBaseMapper().selectCategorysByPage( wrapper);
	}

}
